<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/


use App\Http\Controllers\Project\ProjectController;

Route::get('/',function(){
    return redirect('/home');
});
Route::get('/home', function () {
    return view('pages.dashboard');
});

Route::resource('project','Project\ProjectController');
Route::resource('user','User\UserController');

Route::group(['prefix' => 'api'],function(){
    Route::controllers([
            'user' => 'User\UserController',
            'project' => 'Project\ProjectController',
        ]);
});


Route::controllers([
        'auth'=> 'Auth\AuthController',
        'project' => 'Project\ProjectController',
        'user' => 'User\UserController'
    ]);

